#lvgl rootdir dirname
# LVGL_DIR =.
# LVGL_DIR_NAME =lvgl9_2
# include lvgl9.mk
LVGL_SRC_DIR=$(LVGL_DIR)/$(LVGL_DIR_NAME)/src

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/*.c)
LVGL_INCLUDE +=-I$(LVGL_DIR)/$(LVGL_DIR_NAME) 
  

#core
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/core/*.c)
LVGL_INCLUDE +=-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/core

#display
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/display/*.c)
LVGL_INCLUDE +=-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/display

#draw
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw
#draw/vg_lite
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/vg_lite/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/vg_lite
#draw/sw
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw
#draw/arm2d
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/arm2d/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw/arm2d
#draw/blend
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/blend/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw/blend
#draw/blend/arm2d
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/blend/arm2d/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw/blend/arm2d
#draw/blend/helium
LVGL_SRC_S   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/blend/helium/*.S)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw/blend/helium
#draw/blend/neon
LVGL_SRC_S   +=$(wildcard $(LVGL_SRC_DIR)/draw/sw/blend/neon/*.S)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/draw/sw/blend/neon

#drivers
#display
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display
#drivers/display/drm
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/drm/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/drm
#drivers/display/fb
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/fb/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/fb
# #drivers/display/ili9341
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/ili9341/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/ili9341
# #drivers/display/lcd
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/lcd/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/lcd
# #drivers/display/renesas_glcdc
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/renesas_glcdc/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/renesas_glcdc
# #drivers/display/st7735
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/st7735/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/st7735
# #drivers/display/st7789
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/st7789/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/st7789
# #drivers/display/st7796
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/st7796/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/st7796
# #drivers/display/tft_espi
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/tft_espi/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/tft_espi
# #drivers/display/tft_espi
# LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/drivers/display/tft_espi/*.c)
# LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/drivers/display/tft_espi


#font
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/font/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/font

#indev
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/indev/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/indev

#layouts 
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/layouts/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/layouts

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/layouts/flex/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/layouts/flex

LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/layouts/grid/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/layouts/grid


#statr----libs-------------
#--------barcode
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/barcode/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/barcode
#-------bin_decoder
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/bin_decoder/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/bin_decoder
#-------bmp
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/bmp/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/bmp
#-------ffmpeg
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/ffmpeg/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/ffmpeg
#-------freetype
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/freetype/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/freetype
#-------freetype
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/fsdrv/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/fsdrv
#-------gif
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/gif/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/gif
#-------libjpeg_turbo
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/libjpeg_turbo/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/libjpeg_turbo
#-------libpng
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/libpng/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/libpng
#-------lodepng
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/lodepng/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/liblodepngpng
#-------lz4
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/lz4/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/lz4
#-------qrcode
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/qrcode/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/qrcode
#-------rle
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/rle/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/rle
#-------rlottie
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/rlottie/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/rlottie
#-------thorvg
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/thorvg/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/thorvg
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/thorvg/rapidjson/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/thorvg/rapidjson 
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/thorvg/rapidjson/error 
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/thorvg/rapidjson/internal 
#only for msvc
#LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/thorvg/rapidjson/msinttypes 
#-------thorvg cpp
LVGL_SRC_CPP +=$(wildcard $(LVGL_SRC_DIR)/libs/thorvg/*.cpp) 
LVGL_SRC_CPP +=$(wildcard $(LVGL_SRC_DIR)/libs/thorvg/rapidjson/*.cpp)

#-------tiny_ttf
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/tiny_ttf/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/tiny_ttf
#-------tjpgd
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/libs/tjpgd/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/libs/tjpgd
#-end-----libs------

#misc
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/misc/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/misc
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/misc/cache/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/misc/cache

#osal
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/osal/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/osal

#start-----others-------
#file_explorer
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/file_explorer/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/file_explorer
#fragment
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/fragment/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/fragment
#gridnav
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/gridnav/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/gridnav
#ime
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/ime/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/ime
#imgfont
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/imgfont/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/imgfont
#monkey
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/monkey/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/monkey
#observer
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/observer/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/observer
#snapshot
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/snapshot/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/snapshot
#sysmon
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/sysmon/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/sysmon
#vg_lite_tvg
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/others/vg_lite_tvg/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/others/vg_lite_tvg
#end-------others------

#start ------stdlib-------- 
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/stdlib/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/stdlib
#builtin
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/stdlib/builtin/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/stdlib/builtin
#clib
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/stdlib/clib/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/stdlib/clib
#rtthread
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/stdlib/rtthread/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/stdlib/rtthread
#end ------stdlib----------

#start-----themes----------
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/themes/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/themes
#default
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/themes/default/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/themes/default
#mono
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/themes/mono/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/themes/mono
#simple
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/themes/simple/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/themes/simple
#end-------themes----------

#tick
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/tick/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/tick

#start------widgets--------
#animimage
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/animimage/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/animimage
#arc
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/arc/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/arc
#bar
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/bar/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/bar
#button
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/button/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/button
#buttonmatrix
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/buttonmatrix/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/buttonmatrix
#calendar
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/calendar/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/calendar
#canvas
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/canvas/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/canvas
#chart
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/chart/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/chart
#checkbox
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/checkbox/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/checkbox
#dropdown
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/dropdown/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/dropdown
#image
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/image/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/image
#imagebutton
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/imagebutton/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/imagebutton
#keyboard
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/keyboard/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/keyboard
#label
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/label/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/label
#led
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/led/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/led
#line
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/line/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/line
#list
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/list/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/list
#image
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/image/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/image
#lottie
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/lottie/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/lottie
#menu
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/menu/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/menu
#msgbox
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/msgbox/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/msgbox
#objx_templ
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/objx_templ/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/objx_templ
#property
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/property/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/property
#roller
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/roller/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/roller
#scale
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/scale/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/scale
#slider
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/slider/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/slider
#span
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/span/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/span
#spinbox
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/spinbox/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/spinbox
#spinner
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/spinner/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/spinner
#switch
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/switch/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/switch
#table
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/table/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/table
#tabview
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/tabview/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/tabview
#textarea
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/textarea/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/textarea
#tileview
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/tileview/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/tileview
#tileview
LVGL_SRC_C   +=$(wildcard $(LVGL_SRC_DIR)/widgets/win/*.c)
LVGL_INCLUDE +=-I$(LVGL_SRC_DIR)/widgets/win
#end--------widgets--------
 

.PHONY:testlvgl

testlvgl:
#	@echo $(LVGL_SRC_DIR)
#	@echo $(LVGL_SRC_C)
	@echo $(LVGL_INCLUDE)